package cpr.command;

import cpr.DefaultCommandHandler;

public class CmdWorksetAuto extends DefaultCommandHandler {
	public CmdWorksetAuto() {
		super("ws-auto", "autotomatically splits worset into clusters according to split_seq.[NAME] file");
	}
	public void execute(String[] params) throws Exception {
			String seqName = getParameter(params, 1,"default");
            getCommandContext().getContext().getSelectContext().preloadAllSavedSelections();
			getCommandContext().getContext().getCurrentWorksetContext().autoFill(seqName);
			getCommandContext().pushCommand("$","ws");
	}

}
